// 选择题

const router = require("koa-router")()

const { choiceApi } = require("../../../controller/question/choice")

const { check } = require("../../../middleware/routercheck")

router.get("/choice/:id", check("getchoice"), choiceApi)
router.get("/choice", check("getchoice"), choiceApi)
router.post("/choice", check("createchoice"), choiceApi)
router.put("/choice/:id", check("editchoice"), choiceApi)
router.delete("/choice/:id", check("removechoice"), choiceApi)


module.exports = router